package com.j283_5.wisdom_park.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author laoda
 * @since 2022-04-28
 */
public class WarningRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 设备信息id
     */
    @TableId(value = "wrec_id", type = IdType.AUTO)
    private Integer wrecId;

    /**
     * 预警内容
     */
    private String wrecContent;

    /**
     * 0:告警事件,1:设备故障
     */
    private Integer wrecTypestate;

    /**
     * 0:未派单,1:已派单,2:已处理
     */
    private Integer wrecState;

    /**
     * 预警时间
     */
    private LocalDate wrecDate;

    /**
     * 现场照片
     */
    private String wrecLivephoto;

    /**
     * 设备照片
     */
    private String wrecDevicephoto;

    /**
     * 巡检位置(用于地图显示)
     */
    private String wrecLocationmap;

    /**
     * 报警时间
     */
    private LocalDateTime wrecDatetime;

    /**
     * 持续时间
     */
    private LocalDateTime wrecDuration;

    /**
     * 处理结果
     */
    private String wrecResult;

    /**
     * 设备信息id
     */
    private Integer dinfId;


    public Integer getWrecId() {
        return wrecId;
    }

    public void setWrecId(Integer wrecId) {
        this.wrecId = wrecId;
    }

    public String getWrecContent() {
        return wrecContent;
    }

    public void setWrecContent(String wrecContent) {
        this.wrecContent = wrecContent;
    }

    public Integer getWrecTypestate() {
        return wrecTypestate;
    }

    public void setWrecTypestate(Integer wrecTypestate) {
        this.wrecTypestate = wrecTypestate;
    }

    public Integer getWrecState() {
        return wrecState;
    }

    public void setWrecState(Integer wrecState) {
        this.wrecState = wrecState;
    }

    public LocalDate getWrecDate() {
        return wrecDate;
    }

    public void setWrecDate(LocalDate wrecDate) {
        this.wrecDate = wrecDate;
    }

    public String getWrecLivephoto() {
        return wrecLivephoto;
    }

    public void setWrecLivephoto(String wrecLivephoto) {
        this.wrecLivephoto = wrecLivephoto;
    }

    public String getWrecDevicephoto() {
        return wrecDevicephoto;
    }

    public void setWrecDevicephoto(String wrecDevicephoto) {
        this.wrecDevicephoto = wrecDevicephoto;
    }

    public String getWrecLocationmap() {
        return wrecLocationmap;
    }

    public void setWrecLocationmap(String wrecLocationmap) {
        this.wrecLocationmap = wrecLocationmap;
    }

    public LocalDateTime getWrecDatetime() {
        return wrecDatetime;
    }

    public void setWrecDatetime(LocalDateTime wrecDatetime) {
        this.wrecDatetime = wrecDatetime;
    }

    public LocalDateTime getWrecDuration() {
        return wrecDuration;
    }

    public void setWrecDuration(LocalDateTime wrecDuration) {
        this.wrecDuration = wrecDuration;
    }

    public String getWrecResult() {
        return wrecResult;
    }

    public void setWrecResult(String wrecResult) {
        this.wrecResult = wrecResult;
    }

    public Integer getDinfId() {
        return dinfId;
    }

    public void setDinfId(Integer dinfId) {
        this.dinfId = dinfId;
    }

    @Override
    public String toString() {
        return "WarningRecord{" +
        "wrecId=" + wrecId +
        ", wrecContent=" + wrecContent +
        ", wrecTypestate=" + wrecTypestate +
        ", wrecState=" + wrecState +
        ", wrecDate=" + wrecDate +
        ", wrecLivephoto=" + wrecLivephoto +
        ", wrecDevicephoto=" + wrecDevicephoto +
        ", wrecLocationmap=" + wrecLocationmap +
        ", wrecDatetime=" + wrecDatetime +
        ", wrecDuration=" + wrecDuration +
        ", wrecResult=" + wrecResult +
        ", dinfId=" + dinfId +
        "}";
    }
}
